package com.example.demo.service;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.demo.bean.Person;
import com.example.demo.mapper.PersonMapper;

@Service
public class PersonService {
    
  @Autowired
  private PersonMapper mapper;
  
  public List<Person> getAll(){
    List<Person> list = new ArrayList<Person>();
    list = mapper.selectAll();
    return list;
  }
}